import request from '@/utils/request'
const system = window.lwConfig.services.system

/**
 * 获取列表
 * @param {*} params
 */
export function getList(params) {
  return request({
    url: system + '/user/user/list',
    method: 'GET',
    params,
  })
}

/**
 * 添加/编辑
 * @param {*} params
 */
export function addObj(data) {
  return request({
    url: system + '/user/user/update',
    method: 'POST',
    data,
  })
}